package com.sjd.mall.service.shoppingcart;

import com.sjd.common.core.domain.AjaxResult;
import com.sjd.mall.domain.dto.shoppingcart.WxShoppingCartAddRequestDTO;
import com.sjd.mall.domain.dto.shoppingcart.WxShoppingCartDeleteRequestDTO;
import com.sjd.mall.domain.dto.shoppingcart.WxShoppingCartQryResponseDTO;
import com.sjd.mall.domain.dto.shoppingcart.WxShoppingCartUpdateRequestDTO;

import java.util.List;

/**
 * 购物车
 *
 * @author seer
 * @date 2022/1/13 0:03
 */
public interface WxShoppingCartService {

    /**
     * 购物车添加
     *
     * @param requestDTO requestDTO
     * @return object
     */
    AjaxResult add(WxShoppingCartAddRequestDTO requestDTO);

    /**
     * 购物车查询
     *
     * @return object
     */
    List<WxShoppingCartQryResponseDTO> qry();

    /**
     * 购物车修改
     *
     * @param requestDTO requestDTO
     * @return object
     */
    AjaxResult update(WxShoppingCartUpdateRequestDTO requestDTO);

    /**
     * 购物车删除
     *
     * @param requestDTO requestDTO
     * @return object
     */
    AjaxResult delete(WxShoppingCartDeleteRequestDTO requestDTO);
}
